﻿using CPPEI.Coolzon.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Service
{
    /// <summary>
    /// 方案发布服务
    /// </summary>
    [ServiceContract]
    public interface IPublishService
    {
        [OperationContract]
        PreparePublishSolutionResponse PreparePublishSolution(PreparePublishSolutionRequest request);

        [OperationContract]
        CommitPublishSolutionResponse CommitPublishSolution(CommitPublishSolutionRequest request);

        [OperationContract]
        CancelPublishSolutionResponse CancelPublishSolution(CancelPublishSolutionRequest request);

        [OperationContract]
        PublishSolutionFileResponse PublishSolutionFile(PublishSolutionFileRequest request);

        [OperationContract]
        PreparePublishDataSourceResponse PreparePublishDataSource(PreparePublishDataSourceRequest request);

        [OperationContract]
        CommitPublishDataSourceResponse CommitPublishDataSource(CommitPublishDataSourceRequest request);

        [OperationContract]
        CancelPublishDataSourceResponse CancelPublishDataSource(CancelPublishDataSourceRequest request);

        [OperationContract]
        PublishDataSourceFileResponse PublishDataSourceFile(PublishDataSourceFileRequest request);
    }
}
